// 销售订单相关类型

// 销售订单信息
export interface SalesOrder {
  salesOrderId: number
  salesOrderNo: string
  salespersonId: number
  salespersonName?: string
  customerId: number
  customerName?: string
  salesAmount: number
  status: number
  statusDesc?: string
  createBy?: number
  createTime: Date
  updateBy?: number
  updateTime: Date
  remark?: string
}

// 销售订单查询参数
export interface SalesOrderSearch {
  salesOrderNo?: string
  salespersonId?: number
  customerId?: number
  status?: number
  beginTime?: Date
  endTime?: Date
}

// 销售订单状态枚举
export enum SalesOrderStatus {
  COMPLETED = 1, // 完结
  REFUNDED = 2   // 退款
}

// 销售订单状态选项
export const salesOrderStatusOptions = [
  { label: '完结', value: SalesOrderStatus.COMPLETED },
  { label: '退款', value: SalesOrderStatus.REFUNDED }
]

